<script setup lang="ts">
import '@/scss/courseSchedule.scss'
</script>

<template>
  <!-- 顶部用户信息 -->
  <view class="header">
    <view class="user-info">
      <!-- <image class="avatar" src="/static/avatar-placeholder.png" /> -->
      <text class="greeting">
        聂小倩，上午好！
      </text>
    </view>
    <!-- <view class="notification">
        <uni-icons type="notification" size="24" />
        <text class="badge">
          4
        </text>
      </view> -->
  </view>
</template>

<style lang="scss" scoped>
.header {
    padding: 30rpx;
    background-color: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9;
    box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
    justify-content: space-between;

    .user-info {
        display: flex;
        align-items: center;

        .avatar {
            width: 80rpx;
            height: 80rpx;
            border-radius: 50%;
            margin-right: 20rpx;
        }

        .greeting {
            font-size: 32rpx;
            font-weight: bold;
            color: #333;
        }
    }

    .notification {
        position: relative;

        .badge {
            position: absolute;
            top: -6rpx;
            right: -14rpx;
            background-color: #ff6b6b;
            color: #fff;
            font-size: 20rpx;
            padding: 4rpx 12rpx;
            border-radius: 20rpx;
        }
    }
}
</style>
